 {yun:}include file="$wapstyle/header_cont.htm"{/yun}
<link rel="stylesheet" href="{yun:}$wap_style{/yun}/css/new_company_show.css?v={yun:}$config.cachecode{/yun}" type="text/css" />

  <section class="banner_wrapper">
      
       <div class="banner">

           <img src="../app/template/wap/images/company_banner.png" />
     
           
            <div class="company_cont">
                <div class="muipreview">
                   <img class="logo-img" src="{yun:}$row.logo{/yun}" onerror="showImgDelay(this,'{yun:}$config.sy_weburl{/yun}/{yun:}$config.sy_unit_icon{/yun}',2);"/>
                 </div>
         
                <div class="company_name">{yun:}$row.name{/yun}</div>

                 <div class="company_des">
                     {yun:}if $city_name[$row.provinceid]{/yun} 
                        <span>
                          <img src="../app/template/wap/images/company-wzicon.png" />
                         {yun:}$city_name[$row.provinceid]{/yun}
                         {yun:}if $city_name[$row.cityid]{/yun}/{yun:}$city_name[$row.cityid]{/yun}{yun:}/if{/yun}
                        </span>
                     {yun:}/if{/yun}


                     <span><img src="../app/template/wap/images/company-icon2.png" />{yun:}$comclass_name[$row.pr]{/yun}</span>

                     {yun:}if $comclass_name[$row.mun]{/yun}
                        <span><img src="../app/template/wap/images/company-icon3.png" />{yun:}$comclass_name[$row.mun]{/yun}</span>
                     {yun:}/if{/yun}

                      
                        <span><img src="../app/template/wap/images/company-icon4.png" />{yun:}$industry_name[$row.hy]{/yun}</span>
                      
                 </div>


            </div>

      </div>



  </section>

  <section class="tab_wrapper">
      
    <div class="mui-segmented-control tab-hd">
        <a class="mui-control-item mui-active" href="#zz_job">在招职位</a>
        <a class="mui-control-item" href="#basic_info">基本信息</a>
        <a class="mui-control-item" href="#company_space">企业空间</a>
   </div>

   <div class="mui-clearfix tab-bd">
        <div id="zz_job" class="mui-control-content mui-active">
         
            <div class="job_type">
                {yun:}foreach from=$labels key=k item=val {/yun}

                 <!-- <span class="job_type_active">$val</span> -->
                 <span  {yun:}if $smarty.get.label_id==$k{/yun} class="job_type_active" {yun:}/if{/yun}>

                   <a style="display: block; width:100%;height:100%;" href="{yun:}url m=wap c=company a=show id=$smarty.get.id label_id=$k{/yun}">

                    {yun:}$val{/yun}

                  </a>
                </span>

                {yun:}/foreach{/yun}
            </div>


            <div class="job_list">

                {yun:}if $smarty.get.label_id{/yun}

                {yun:}assign var=uid value=$row.uid{/yun} {yun:}assign var=label_id value=$smarty.get.label_id{/yun}  {yun:}joblist namelen=8 comlen=12 ispage=0 uid='@row.uid' order=xuanshang islt=4 item=job_list name=joblist1 label='@label_id'{/yun}
               <div class="job_item">
                    
                  <a href="{yun:}url m=wap c=job a=view id=$job_list.id{/yun}" style="display: flex; flex-direction: column;">
                   <div><span class="job_title">{yun:}$job_list.name_n{/yun}{yun:}if $job.urgent_time>time(){/yun}<i class="urgent">急招</i>{yun:}/if{/yun}</span> <span class="job_up_time">{yun:}$job_list.time{/yun}更新</span></div>
                   <div class="gongzi">
                      <span class="job_salary"> {yun:}if $job_list.job_salary!='面议'{/yun}￥{yun:}$job_list.job_salary{/yun}{yun:}else{/yun}面议{yun:}/if{/yun}</span>  
                      <div class="see_num"><img src="../app/template/wap/images/see_icon.png" />{yun:}$job_list.jobhits{/yun}</div>
                   </div>
                   <div class="job_info">
                       <span><img src="../app/template/wap/images/position_icon.png" /> {yun:}$job_list.job_city_one{/yun}-{yun:}$job_list.job_city_two{/yun} </span>
                       {yun:}if $job_list.job_edu{/yun}
                       <span><img src="../app/template/wap/images/xueli_icon.png"/>{yun:}$job_list.job_edu{/yun}学历</span>
                       {yun:}/if{/yun}

                       {yun:}if $job_list.job_exp{/yun}
                          <span><img src="../app/template/wap/images/xueli_icon1.png"/>{yun:}$job_list.job_exp{/yun}经验</span>
                       {yun:}/if{/yun}


                      <span class="shangjin_img">
                        <img class="sj_pic" src="../app/template/wap/images/shangjin.png" />
                        <span>￥100</span>
                      </span>

                   </div>
                   <div class="job_desc">
                     职位描述:
                     <div class="job_desc_txt">
                          {yun:}$job_list.description{/yun}
                     </div>
                    </div>
                    </a>
                     
                   <div class="job_btn">
                      <span><img src="../app/template/wap/images/toudi_icon.png" />我要投递</span>
                      <span><img src="../app/template/wap/images/love_icon.png" />已感兴趣</span>
                    </div>

                   <div class="see_more"><span>展开详情</span><img src="../app/template/wap/images/jt_bot.png"/></div>
                
               </div>

              {yun:}joblistelse{/yun}
                <div class="evaluate_pj_no"><i class="evaluate_pj_no_icon"></i>该企业还没有发布职位信息! </div>
              {yun:}/joblist{/yun}


               {yun:}else{/yun}

                {yun:}assign var=uid value=$row.uid{/yun} {yun:}assign var=label_id value=$smarty.get.label_id{/yun}  {yun:}joblist namelen=8 comlen=12 ispage=0 uid='@row.uid' order=xuanshang islt=4 item=job_list name=joblist1{/yun}
               <div class="job_item">
                    
                  <a href="{yun:}url m=wap c=job a=view id=$job_list.id{/yun}" style="display: flex; flex-direction: column;">
                   <div><span class="job_title">{yun:}$job_list.name_n{/yun}{yun:}if $job.urgent_time>time(){/yun}<i class="urgent">急招</i>{yun:}/if{/yun}</span> <span class="job_up_time">{yun:}$job_list.time{/yun}更新</span></div>
                   <div class="gongzi">
                      <span class="job_salary"> {yun:}if $job_list.job_salary!='面议'{/yun}￥{yun:}$job_list.job_salary{/yun}{yun:}else{/yun}面议{yun:}/if{/yun}</span>  
                      <div class="see_num"><img src="../app/template/wap/images/see_icon.png" />{yun:}$job_list.jobhits{/yun}</div>
                   </div>
                   <div class="job_info">
                       <span><img src="../app/template/wap/images/position_icon.png" /> {yun:}$job_list.job_city_one{/yun}-{yun:}$job_list.job_city_two{/yun} </span>
                       {yun:}if $job_list.job_edu{/yun}
                       <span><img src="../app/template/wap/images/xueli_icon.png"/>{yun:}$job_list.job_edu{/yun}学历</span>
                       {yun:}/if{/yun}

                       {yun:}if $job_list.job_exp{/yun}
                          <span><img src="../app/template/wap/images/xueli_icon1.png"/>{yun:}$job_list.job_exp{/yun}经验</span>
                       {yun:}/if{/yun}

                       {yun:}if $job_list.bounty>0 && $job_list.job_pay>0{/yun}
                       <span class="shangjin_img">
                        <img class="sj_pic" src="../app/template/wap/images/shangjin.png" />
                        <span>￥{yun:}$job_list.bounty{/yun}</span>
                       </span>
                      {yun:}/if{/yun}

                   </div>
                   <div class="job_desc">
                     职位描述:
                     <div class="job_desc_txt">
                          {yun:}$job_list.description{/yun}
                     </div>
                    </div>
                    </a>
                     
                   <div class="job_btn">
                      <span><img src="../app/template/wap/images/toudi_icon.png" />我要投递</span>
                      {yun:}foreach from=$fav_jobids item=fav{/yun}
                         {yun:}if $job_list.id==$fav{/yun} {yun:}assign var=is_like value=$fav{/yun}  {yun:}/if{/yun}
                      {yun:}/foreach{/yun}

                         {yun:}if $is_like==$job_list.id{/yun}
                           <span><img src="../app/template/wap/images/love_icon.png" />已感兴趣</span>
                         {yun:}else{/yun}
                          <span>
                            <a href="javascript:jobfav('{yun:}$job_list.id{/yun}');">
                              <img src="../app/template/wap/images/love_icon.png" />收藏
                            </a>
                          </span>
                        {yun:}/if{/yun}

                    </div>

                   <div class="see_more"><span>展开详情</span><img src="../app/template/wap/images/jt_bot.png"/></div>
                
               </div>

              {yun:}joblistelse{/yun}
                <div class="evaluate_pj_no"><i class="evaluate_pj_no_icon"></i>该企业还没有发布职位信息! </div>
              {yun:}/joblist{/yun}

               {yun:}/if{/yun}

                <!-- 
                 <div class="job_item">
                   <div><span class="job_title">高级产品经理</span> <span class="job_up_time">2019-3-15更新</span></div>
                   <div>
                      <span class="job_salary">￥18000-30000</span>  
                      <div class="see_num"><img src="../app/template/wap/images/see_icon.png" /> 832</div>
                   </div>
                   <div class="job_info">
                       <span><img src="../app/template/wap/images/position_icon.png" />上海 </span>
                       <span><img src="../app/template/wap/images/xueli_icon.png"/>大专</span>
                        <span><img src="../app/template/wap/images/xueli_icon1.png"/>应届毕业生</span>
                   </div>
                   <div class="job_desc">
                     职位描述:
                     <div class="job_desc_txt">职位描述:职位描述:职位描述:职位描述:职位描述:</div>
                    </div>
                   <div class="job_btn">
                      <span><img src="../app/template/wap/images/toudi_icon.png" />我要投递</span> 
                      <span><img src="../app/template/wap/images/love_icon.png" />已感兴趣</span>
                    </div>

                   <div class="see_more"><span>展开详情</span><img src="../app/template/wap/images/jt_bot.png"/></div>
               </div> -->

            </div>


        </div>
        <!--基本信息 start-->
        <div id="basic_info" class="mui-control-content">
             <div class="basic_info_wrapper">

                  <div class="gongsi_desc">
                       <div class="gongsi_desc_hd">
                           <span class="jj_title">公司简介</span>
                       </div>
                       <div class="gongsi_desc_bd">
                           {yun:}if $row.content{/yun} 
                              {yun:}$row.content{/yun}
                           {yun:}else{/yun}
                             该企业还没有填写公司简介!
                           {yun:}/if{/yun}
                       </div>
                       <div class="gongsi_desc_btn">
                           <img src="../app/template/wap/images/jt_bot.png" />
                       </div>

                  </div>

                  {yun:}if !empty($ProductList){/yun}
                  <div class="gongsi_product">
                      <div class="product_desc_hd">

                          <span class="product_title">主要产品(<span id="pro_cur_num">1</span>/1)</span>

                      </div>
                      <div class="product_desc_bd">
                         <div class="mui-slider abc">
                              <div class="mui-slider-group">
                                <!--第一个内容区容器-->
                                {yun:}foreach from=$ProductList item=row{/yun}
                                <div class="mui-slider-item">
                                  <!-- 具体内容 -->
                                     <div class="product_wrapper">
                                         <img class="product_img" src="{yun:}$config.sy_weburl{/yun}/{yun:}$row.pic{/yun}" />
                                         <div class="product_info">
                                              <div class="product_name">{yun:}$row.title{/yun}</div>
                                              <div class="product_label">
                                                <!-- <span>网站</span><span>客户端</span><span>移动app</span> -->
                                                
                                                  {yun:}foreach from=$row.welfare item=val{/yun}
                                                      <span>{yun:}$val{/yun}</span>
                                                  {yun:}/foreach{/yun}


                                               </div>
                                         </div>
                                    </div>

                                </div>
                                {yun:}/foreach{/yun}
                                <!--第二个内容区-->
                                <!-- <div class="mui-slider-item">
                                  product2
                                </div> -->
                              </div>
                          </div>

                      </div>


                      <script type="text/javascript">
                          document.querySelector('.abc').addEventListener('slide', function(event) {
                              //注意slideNumber是从0开始的；
                              document.getElementById("pro_cur_num").innerText = (event.detail.slideNumber+1);
                            });

                      </script>

                  </div>

                  {yun:}/if{/yun}

                  <div class="gongsi_team">
                     <div class="gongsi_team_hd">

                            <span class="team_title">管理团队(1/1)</span>

                     </div>

                     <div class="gongsi_team_bd">
                        <div class="mui-slider aaa">
                           <div class="mui-slider-group">
                               {yun:}foreach from=$teams item=team{/yun}
                               <div class="mui-slider-item">

                                   <div class="team_person_info">
                                       <img src="{yun:}$config.sy_weburl{/yun}{yun:}$team.pic{/yun}" />
                                       <span class="team_person_name">{yun:}$team.title{/yun}</span>
                                       <span class="team_person_zhiwu">{yun:}$team.position{/yun}</span>
                                   </div>
                                   <div class="team_person_desc">
                                      {yun:}$team.body{/yun}
                                   </div>
                             </div>

                             {yun:}/foreach{/yun}


                         </div>

                      </div>


                     </div>


                  </div>

                  <div class="gongsi_addr">
                       
                      <div class="gongsi_addr_hd">
                           <span class="addr_title">公司地址</span>

                      </div>
                      <div class="gongsi_addr_bd">

                          {yun:}foreach from=$address_list item=add{/yun}
                            <div class="addr_item">
                                 <div class="city">
                                     <img src="../app/template/wap/images/position_icon.png" />
                                      {yun:}$add.address{/yun}
                                 </div>
                                 <div class="add_detail">
                                     {yun:}$add.add_detail{/yun}
                                 </div>
                            </div>
                            {yun:}/foreach{/yun}

                      </div>

                  </div>

                  <div class="gongsi_gsinfo">
                       <div class="gongsi_gsinfo_hd">
                           <span class="addr_title">工商信息</span>

                      </div>
                      <div class="gongsi_gsinfo_bd">
                          <ul>
                              <li>
                                <span class="gs_title">工商信息</span>
                                <span class="gs_txt">{yun:}$gs_info.name{/yun}</span>
                                <div class="clear"></div>
                              </li>
                             <li>
                                <span class="gs_title">成立时间</span>
                                <span class="gs_txt">{yun:}$gs_info.sdate{/yun}</span>
                                <div class="clear"></div>
                              </li>
                              <li>
                                <span class="gs_title">注册资本</span>
                                <span class="gs_txt">
                                   {yun:}$gs_info.money{/yun}
                                   {yun:}if $gs_info.moneytype==1{/yun}万元{yun:}else{/yun}万美元{yun:}/if{/yun}
                                </span>
                                <div class="clear"></div>
                              </li>
                              <li>
                                <span class="gs_title">法人代表</span>
                                <span class="gs_txt">{yun:}$gs_info.legal_person{/yun}</span>
                                <div class="clear"></div>
                              </li>
                          </ul>

                      </div>

                  </div>
             </div>

            <div class="footer">
                <a class="footer_btn" href="javascript:void(0);" data-url='{yun:}url m=wap c=company a=share id=$row.uid{/yun}' id="shareClick">分享企业</a>

                {yun:}if $usertype=='1'{/yun}

                     {yun:}if $isatn.id{/yun}
                           <a class="footer_btn active" href="javascript:void(0)" onclick="atn('{yun:}$row.uid{/yun}','{yun:}url m=wap c=ajax a=atncompany{/yun}')" id='atn_{yun:}$row.uid{/yun}'>取消关注</a>
                     {yun:}else{/yun}
                            <a class="footer_btn" href="javascript:void(0)" onclick="atn('{yun:}$row.uid{/yun}','{yun:}url m=wap c=ajax a=atncompany{/yun}')" id='atn_{yun:}$row.uid{/yun}'>关注企业</a>
                     {yun:}/if{/yun}

                {yun:}else{/yun}

                      {yun:}if $usertype{/yun} 

                          <a href="javascript:void(0)" class="footer_btn" onclick="notuser('{yun:}$typename[$usertype]{/yun}','{yun:}$username{/yun}','个人账户','{yun:}url m=wap c=ajax a=notuserout{/yun}','');">关注企业</a>
                   
                      {yun:}else{/yun}

                         <a href="javascript:void(0)" class="footer_btn" onclick="pleaselogin('您还未登录个人账号，是否登录？','{yun:}url m=wap c=login{/yun}')">关注企业</a>

                      {yun:}/if{/yun}

                {yun:}/if{/yun}





            </div>

        </div>
        <!--基本信息 end-->


        <!--企业空间 start-->

        <div id="company_space" class="mui-control-content">
             <!--公司图集 start-->
             <div class="gongsi_album">
                <div class="gongsi_album_hd">
                    <span class="title">公司图集</span>
                </div>

                 <div class="gongsi_album_bd">
                   <div class="mui-slider efg">

                        <div class="mui-slider-group">
                          {yun:}foreach from=$show item=v{/yun}
                            <div class="mui-slider-item">
                              <a href="#"><img src="{yun:}$config.sy_weburl{/yun}{yun:}$v.picurl{/yun}" /></a>
                            </div>
                          {yun:}/foreach{/yun}

                            <!--  <div class="mui-slider-item"><a href="#"><img src="../app/template/wap/images/company_lb2.jpg" /></a></div> -->
                         
                        </div>
                      
                        <div class="mui-slider-indicator">
                             <!--  <div class="mui-indicator mui-active"></div> -->
                              {yun:}foreach from=$show item=v{/yun}
                              <div class="mui-indicator"></div>
                              {yun:}/foreach{/yun}
                        </div>
                    </div>

                 </div>


                  <script type="text/javascript">
                    
                       document.querySelector('.efg').addEventListener('slide', function(event) {
                          //注意slideNumber是从0开始的；
                         //alert("你正在看第"+(event.detail.slideNumber+1)+"张图片");
                          var cur_index = slideNumber;
                          $('.efg .mui-slider-indicator.mui-indicator').removeClass('mui-active');
                          $('.efg .mui-slider-indicator.mui-indicator:eq('+cur_index+')').addClass('mui-active');

                       });

                  </script>

             </div>


              <!--公司面试评价 start-->
             <div class="gs_evaluation">
                <div class="gs_evaluation_hd">
                   <span class="title">面试评价</span>
                  <span class="see_more">
                    <a href="{yun:}url m=wap c=company a=show_pj_list id=$smarty.get.id{/yun}">
                      查看全部<img src="../app/template/wap/images/cxyyou3.png" />
                    </a>
                  </span> 
                </div>
                <div class="gs_evaluation_bd">
                    <ul class="evaluation_list">
                        {yun:}foreach from=$commentes item=val{/yun}

                         <li class="evaluation_item">
                             <div class="evaluation_person">
                                 <div class="avatar_img">
                                  <img class="evaluation_avatar" src="{yun:}$val.userhead{/yun}" onerror="showImgDelay(this,'{yun:}$config.sy_weburl{/yun}/{yun:}$config.sy_member_iconv{/yun}',2);" />
                                </div>

                                 <div class="name_zhiwei">
                                     <span class="name">{yun:}$val.username{/yun}</span>
                                     <span class="zhiwei">面试职位：{yun:}$val.job_name{/yun}(已下线)</span>
                                 </div>
                                 <div class="star_date">
                                     <div class="star_group"> 
                                     {yun:}foreach from=$val.score item=score{/yun}
                                       {yun:}if $score==1{/yun}
                                      <img class="star" src="../app/template/wap/images/star-yello.png" />
                                       {yun:}else{/yun}
                                        <img class="star" src="../app/template/wap/images/star-gray.png" />
                                       {yun:}/if{/yun}
                                       {yun:}/foreach{/yun}
                                      <div class="clear"></div>
                                     </div>
                                      <span class="date">{yun:}$val.date{/yun}</span>
                                 </div>
                             </div>
                             <div class="evaluation_label">
                               {yun:}foreach from=$val.label item=v{/yun}
                                 <span>{yun:}$v{/yun}</span>                              
                               {yun:}/foreach{/yun}
                             </div>
                             <div class="pj_txt">
                               面试过程：{yun:}$val.cont{/yun}
                              </div>
                             <div class="bot_info">

                               {yun:}if $val.is_like==1{/yun}
                                 <img src="../app/template/wap/images/zan_blue.png" data-id="{yun:}$val.id{/yun}"/>
                               {yun:}else{/yun}
                                 <img src="../app/template/wap/images/shou_icon.png" data-id="{yun:}$val.id{/yun}"/>
                               {yun:}/if{/yun}

                                <span>有用(<span class="zan_num">{yun:}$val.zan_num{/yun}</span>)</span>
                             </div>
                         </li>
                         {yun:}/foreach{/yun}


             <!-- <li class="evaluation_item">
             <div class="evaluation_person">
        <div class="avatar_img">
         <img class="evaluation_avatar" src="../app/template/wap/images/avatar_girl.png" />
       </div>

        <div class="name_zhiwei">
            <span class="name">赵****杰</span>
            <span class="zhiwei">面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)面试职位：运营(实习生(已下线)</span>
        </div>
        <div class="star_date">
            <div class="star_group"> 
             <img class="star" src="../app/template/wap/images/star-yello.png" />
             <img class="star" src="../app/template/wap/images/star-yello.png" />
             <img class="star" src="../app/template/wap/images/star-yello.png" />
             <img class="star" src="../app/template/wap/images/star-yello.png" />
             <img class="star" src="../app/template/wap/images/star-gray.png" />
             <div class="clear"></div>
            </div>
             <span class="date">03月16日</span>
        </div>
    </div>
    <div class="evaluation_label">
      <span>环境好</span>
      <span>环境高大上</span>
    </div>
    <div class="pj_txt">
      面试过程：面试过程很轻松，环境特别好
     </div>
    <div class="bot_info">
       <img src="../app/template/wap/images/shou_icon.png" />
       <span>有用(2)</span>
    </div>

</li> -->



                    </ul>

                </div>

              
             </div>


            

          <!--  <div class="swiper_banner" style=" text-align:center">
          <div class="swiper-container" id="imgswiper">
            <div class="swiper-wrapper">
            {yun:}foreach from=$show item=v{/yun}
            <div class="swiper-slide">
              <img src="{yun:}$config.sy_weburl{/yun}{yun:}$v.picurl{/yun}" style="max-width:100%;height:160px;" />
            </div>
            {yun:}/foreach{/yun}
            </div>
          </div>
           </div>  -->

        </div>
        <!--企业空间 end-->

   </div> 

  </section>



<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/layer/layer.m.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/prefixfree.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<link rel="stylesheet" href="{yun:}$wap_style{/yun}/js/swiper/swiper.min.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
<script src="{yun:}$wap_style{/yun}/js/swiper/swiper.min.js?v={yun:}$config.cachecode{/yun}"></script>

<script type="text/javascript">

    var wapurl = "{yun:}url m=wap{/yun}";

    function jobfav(jobid) {
        layer_load('执行中，请稍候...');
        $.get(wapurl + "?c=job&a=view&type=fav&id="+jobid, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
      if(data.state==1){
        pleaselogin('您还未登录个人账号，是否登录？','{yun:}url m=wap c=login{/yun}')
      }else if(data.state==2){
        notuser('{yun:}$typename[$usertype]{/yun}','{yun:}$username{/yun}','个人账户','{yun:}url m=wap c=ajax a=notuserout{/yun}','{yun:}$job.id{/yun}');
      }else if(data.url) {
                if(data.url == '1') {
                    url = location.href;
                }
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2, function() {
                    location.reload();
                });
            }
        })
    };




  $(function(){
     mui(".evaluation_list").on("click",".bot_info img", function(event){
           //alert(this.dataset.id);
        
           console.log($(this).parents('.bot_info').find('.zan_num'));
           var cur_zan_num =  parseInt($(this).parents('.bot_info').find('.zan_num').text());
           var zan_num_dom=$(this).parents('.bot_info').find('.zan_num');
           var comment_id = this.dataset.id;
            that = this;

                      $.ajax({
                        type: "post",
                        dataType: "json",
                        url: '{yun:}$config.sy_weburl{/yun}/wap/index.php?c=company&a=ajax_com_like',
                        data: {comment_id},
                        success: function (data) {
                            console.log(data);
                            console.log($(that));
                            stat = 1;

                            if(data.code==1){

                                layermsg('请登录后点赞！');
                                return false;
                            }


                            if(data.is_liked==1){ //曾经点赞过

                               if(data.status==1){
                                  $(that).attr('src','../app/template/wap/images/shou_icon.png');
                                 zan_num_dom.text(cur_zan_num-1);
                               }else{
                                  $(that).attr('src','../app/template/wap/images/zan_blue.png');
                                  zan_num_dom.text(cur_zan_num+1);
                               }
                              
                               
                            }else{ //曾经没有点赞
                               //alert('aaaaa');
                               $(that).attr('src','../app/template/wap/images/zan_blue.png');
                               
                               zan_num_dom.text(cur_zan_num+1);


                            }
                        }
                    });


     })
 });


</script>



<script type="text/javascript">
    $('.see_more').on('click',function(){
        var parent = $(this).parents('.job_item');
       if( parent.find('.job_desc').hasClass('zhankai')){

           parent.find('.job_desc').removeClass('zhankai');
           parent.find('.see_more img').removeClass('xuanzhuan180');
           parent.find('.see_more span').text('展开详情');

       }else{

           parent.find('.job_desc').addClass('zhankai');
           parent.find('.see_more img').addClass('xuanzhuan180');
           parent.find('.see_more span').text('收起');
       }
           
    });


</script>







<script>
    var config = {
        url: '{yun:}url m=wap c=company a=share id=$row.uid{/yun}',
        title: '{yun:}$row.name{/yun}-{yun:}$config.sy_webname{/yun}',
        desc: '',
        img: '{yun:}$config.sy_weburl{/yun}/{yun:}$config.sy_wx_sharelogo{/yun}',
        img_title: '{yun:}$row.name{/yun}',
        from: '{yun:}$config.sy_webname{/yun}'
    };
    $(function() {
        $.post('{yun:}url m=wap c=ajax a=getbusiness{/yun}', {
            name: '{yun:}$row.name{/yun}'
        }, function(data) {

            if(data) {
                var business = eval('(' + data + ')');
                $('#creditCode').html(business.creditCode);
                $('#estiblishTime').html(business.estiblishTime);
                $('#orgNumber').html(business.orgNumber);
                $('#Time').html(business.fromTime + '至' + business.toTime);
                $('#companyOrgType').html(business.companyOrgType);
                $('#regInstitute').html(business.regInstitute);
                $('#regStatus').html(business.regStatus);
                $('#regLocation').html(business.regLocation);
                $('#regCapital').html(business.regCapital);
                $('#businessScope').html(business.businessScope);
                $('#tianyancha').attr('href', 'https://www.tianyancha.com/company/' + business.companyId);
                $('#businessInfo').show();
                
            }
        });
    })
    $(function() {
        var myimgswiper = new Swiper('#imgswiper', {
            direction: 'horizontal',
            autoplay: true,
            loop: true
        });
    });
</script>
{yun:}if $row.x && $row.y{/yun}
<script type="text/javascript" src="{yun:}$config.mapurl{/yun}"></script>
<script>
    
    function getdistance() {
        var map_x = $("#map_x").val();
        var map_y = $("#map_y").val();
        if(map_x == 0 && map_y == 0) {
            var geolocation = new BMap.Geolocation();
            geolocation.getCurrentPosition(function(r) {
                if(this.getStatus() == BMAP_STATUS_SUCCESS) {
                    $.post(wapurl + 'index.php?c=job&a=distance', {
                        x: r.point.lng,
                        y: r.point.lat
                    }, function(data) {})
                    $("#map_x").val(r.point.lng);
                    $("#map_y").val(r.point.lat);
                } else {
                    if(this.getStatus() == "6") {
                        layermsg("开启手机定位后才能使用此功能", 2);
                        return false;
                    } else if(this.getStatus() == "7") {
                        layermsg("开启手机定位后才能使用此功能", 2);
                        return false;
                    } else {
                        layermsg("地图定位出错", 2);
                        return false;
                    }
                }
            }, {
                enableHighAccuracy: true
            })
        }
        var x = '{yun:}$row.x{/yun}',
            y = '{yun:}$row.y{/yun}';
        var map = new BMap.Map();
        if(map_x > 0 && map_y > 0) {
            var pointA = new BMap.Point(x, y);
            var pointB = new BMap.Point(map_x, map_y);
            var distance = '(' + (map.getDistance(pointA, pointB) / 1000).toFixed(1) + 'km)';
            $("#distance").html(distance);
        } else {
            setTimeout(function() {
                getdistance();
            }, 3000);
        }
    }
    $(function() {
        getdistance();
    })
</script>
{yun:}/if{/yun} 
<script>
    $(function() {
        var cheight = $("#com_content").height();
        var bheight = $("#com_business").height();
        if(parseInt(cheight) > 275) {
            $("#com_content").attr('style', 'width:100%;height:275px; overflow:hidden');
            $(".com_show_cont").show();
        }
        if(parseInt(bheight) > 275) {
            $("#com_business").attr('style', 'line-height:30px;height:auto; overflow:hidden');
            $(".on-off").show();
        }
    });

    function showcc() {
        $("#com_content").attr('style', 'width:100%;height:auto; overflow:hidden');
        $(".com_show_cont").find('a').html('收起');
        $(".com_show_cont").find('a').attr('onclick', 'hidecc()');
    }

    function hidecc() {
        $("#com_content").attr('style', 'width:100%;height:275px; overflow:hidden');
        $(".com_show_cont").find('a').html('展开信息');
        $(".com_show_cont").find('a').attr('onclick', 'showcc()');
    }

    function showbb() {
        $("#com_business").attr('style', 'line-height:30px;height:auto; overflow:hidden');
        $(".on-off").find('a').html('收起');
        $(".on-off").find('a').attr('onclick', 'hidebb()');
    }

    function hidebb() {
        $("#com_business").attr('style', 'line-height:30px;height:275px; overflow:hidden');
        $(".on-off").find('a').html('展开信息');
        $(".on-off").find('a').attr('onclick', 'showbb()');
    }
</script>
<link rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/wap/js/mui/css/mui.previewimage.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
<script src="{yun:}$wap_style{/yun}/js/mui/mui.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/mui/mui.zoom.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/mui/mui.previewimage.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>


<script language="javascript"> 
/*var mySwiper = new Swiper('.swiper-container',{
pagination: {
    el: '.swiper-pagination',
  },
})
*/

/* $(function() {
     var gallery = mui('.mui-slider');
     gallery.slider({
      interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
     });
 });*/

</script>


<!--  <script>
  $(function(){
      mui(".evaluation_list").on("tap",".bot_info", function(event){
         
          alert('ok');
      })
}); 

</script> -->



{yun:}include file="$wapstyle/public_previewimage.htm"{/yun}{yun:}include file="$wapstyle/nativeshare.htm"{/yun}